package com.situ.crm.entity;

import java.util.Date;

public class UserRole extends UserRoleKey {
    private Date createTime;

    private Date updateTime;

    public UserRole(Integer userId, Integer roleId, Date createTime, Date updateTime) {
        super(userId, roleId);
        this.createTime = createTime;
        this.updateTime = updateTime;
    }
    
    public UserRole(Integer userId, Integer roleId) {
        super(userId, roleId);
    }

    public UserRole() {
        super();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append("]");
        return sb.toString();
    }
}